package ro.ase.catalog.security.service;

import ro.ase.catalog.beans.SchoolClass;
import ro.ase.catalog.beans.Teacher;
import ro.ase.catalog.beans.User;
import ro.ase.catalog.beans.dto.TeacherDTO;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Ioana
 * Date: 5/12/14
 * Time: 9:39 PM
 * To change this template use File | Settings | File Templates.
 */
public interface ITeacherService {
    public void addTeacher(Teacher teacher);
    public Boolean saveTransactionalTeacher(User user, Teacher teacher);
    public Teacher getByLastNameFirstName(String lastName, String firstName);

    public List<TeacherDTO> findByName(String searchName, int start, int limit);

    public Teacher getTeacherById(Integer id);

    public void updateTeacher(Teacher teacher);

    public Teacher findByUserName(String userName);

    public void deleteTeacherTransactional(Teacher teacher, User user);

    List<Teacher> getAllTeacherFromAClass(SchoolClass classMaster);
}
